import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/order_list_manage_entity.dart';

OrderListManageEntity $OrderListManageEntityFromJson(Map<String, dynamic> json) {
	final OrderListManageEntity orderListManageEntity = OrderListManageEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		orderListManageEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		orderListManageEntity.code = code;
	}
	final List<OrderListManageData>? data = jsonConvert.convertListNotNull<OrderListManageData>(json['data']);
	if (data != null) {
		orderListManageEntity.data = data;
	}
	return orderListManageEntity;
}

Map<String, dynamic> $OrderListManageEntityToJson(OrderListManageEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] =  entity.data?.map((v) => v.toJson()).toList();
	return data;
}

OrderListManageData $OrderListManageDataFromJson(Map<String, dynamic> json) {
	final OrderListManageData orderListManageData = OrderListManageData();
	final int? orderId = jsonConvert.convert<int>(json['orderId']);
	if (orderId != null) {
		orderListManageData.orderId = orderId;
	}
	final int? orderStatus = jsonConvert.convert<int>(json['orderStatus']);
	if (orderStatus != null) {
		orderListManageData.orderStatus = orderStatus;
	}
	final int? orderTotal = jsonConvert.convert<int>(json['orderTotal']);
	if (orderTotal != null) {
		orderListManageData.orderTotal = orderTotal;
	}
	final double? orderActualTotal = jsonConvert.convert<double>(json['orderActualTotal']);
	if (orderActualTotal != null) {
		orderListManageData.orderActualTotal = orderActualTotal;
	}
	final int? orderCommodityCount = jsonConvert.convert<int>(json['orderCommodityCount']);
	if (orderCommodityCount != null) {
		orderListManageData.orderCommodityCount = orderCommodityCount;
	}
	final dynamic? shopName = jsonConvert.convert<dynamic>(json['shopName']);
	if (shopName != null) {
		orderListManageData.shopName = shopName;
	}
	final String? commodityName = jsonConvert.convert<String>(json['commodityName']);
	if (commodityName != null) {
		orderListManageData.commodityName = commodityName;
	}
	final int? commodityId = jsonConvert.convert<int>(json['commodityId']);
	if (commodityId != null) {
		orderListManageData.commodityId = commodityId;
	}
	final String? skuName = jsonConvert.convert<String>(json['skuName']);
	if (skuName != null) {
		orderListManageData.skuName = skuName;
	}
	final dynamic? shopPic = jsonConvert.convert<dynamic>(json['shopPic']);
	if (shopPic != null) {
		orderListManageData.shopPic = shopPic;
	}
	final String? masterPic = jsonConvert.convert<String>(json['masterPic']);
	if (masterPic != null) {
		orderListManageData.masterPic = masterPic;
	}
	final dynamic? orderLogisticsNo = jsonConvert.convert<dynamic>(json['orderLogisticsNo']);
	if (orderLogisticsNo != null) {
		orderListManageData.orderLogisticsNo = orderLogisticsNo;
	}
	final dynamic? orderPaySerialNo = jsonConvert.convert<dynamic>(json['orderPaySerialNo']);
	if (orderPaySerialNo != null) {
		orderListManageData.orderPaySerialNo = orderPaySerialNo;
	}
	final dynamic? receiveAddressName = jsonConvert.convert<dynamic>(json['receiveAddressName']);
	if (receiveAddressName != null) {
		orderListManageData.receiveAddressName = receiveAddressName;
	}
	final dynamic? orderDvyTime = jsonConvert.convert<dynamic>(json['orderDvyTime']);
	if (orderDvyTime != null) {
		orderListManageData.orderDvyTime = orderDvyTime;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		orderListManageData.createTime = createTime;
	}
	final String? orderNo = jsonConvert.convert<String>(json['orderNo']);
	if (orderNo != null) {
		orderListManageData.orderNo = orderNo;
	}
	final dynamic? receiveUserName = jsonConvert.convert<dynamic>(json['receiveUserName']);
	if (receiveUserName != null) {
		orderListManageData.receiveUserName = receiveUserName;
	}
	final dynamic? receiveTelPhone = jsonConvert.convert<dynamic>(json['receiveTelPhone']);
	if (receiveTelPhone != null) {
		orderListManageData.receiveTelPhone = receiveTelPhone;
	}
	final dynamic? orderShipperCode = jsonConvert.convert<dynamic>(json['orderShipperCode']);
	if (orderShipperCode != null) {
		orderListManageData.orderShipperCode = orderShipperCode;
	}
	final dynamic? shopId = jsonConvert.convert<dynamic>(json['shopId']);
	if (shopId != null) {
		orderListManageData.shopId = shopId;
	}
	return orderListManageData;
}

Map<String, dynamic> $OrderListManageDataToJson(OrderListManageData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['orderId'] = entity.orderId;
	data['orderStatus'] = entity.orderStatus;
	data['orderTotal'] = entity.orderTotal;
	data['orderActualTotal'] = entity.orderActualTotal;
	data['orderCommodityCount'] = entity.orderCommodityCount;
	data['shopName'] = entity.shopName;
	data['commodityName'] = entity.commodityName;
	data['commodityId'] = entity.commodityId;
	data['skuName'] = entity.skuName;
	data['shopPic'] = entity.shopPic;
	data['masterPic'] = entity.masterPic;
	data['orderLogisticsNo'] = entity.orderLogisticsNo;
	data['orderPaySerialNo'] = entity.orderPaySerialNo;
	data['receiveAddressName'] = entity.receiveAddressName;
	data['orderDvyTime'] = entity.orderDvyTime;
	data['createTime'] = entity.createTime;
	data['orderNo'] = entity.orderNo;
	data['receiveUserName'] = entity.receiveUserName;
	data['receiveTelPhone'] = entity.receiveTelPhone;
	data['orderShipperCode'] = entity.orderShipperCode;
	data['shopId'] = entity.shopId;
	return data;
}